package com.jhgsys.internal.base.entity;


import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 区域排班 Entity
 *
 * @author admin
 * @date 2024-07-31 14:35:45
 */
@Data
@TableName("base_area_scheduling")
public class BaseAreaScheduling implements Serializable {

    private static final long serialVersionUID = -1347623579989827508L;
    /**
     * 
     */
    @TableId(value = "area_scheduling_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String areaSchedulingId;

    /**
     * 区域Id
     */
    @TableField("area_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String areaId;

    /**
     * 租户Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 排班日期
     */
    @TableField("scheduling_date")
    @NotNull(message = "{required}")
    @Size(max = 3, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date schedulingDate;

    /**
     * 班次 1：早班 2：中班 3：晚班
     */
    @TableField("scheduling_type")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String schedulingType;

    /**
     * 班次名称
     */
    @TableField("scheduling_name")
    private String schedulingName;

    /**
     * 排版时间
     */
    @TableField("scheduling_time")
    private String schedulingTime;

    /**
     * 用户Id
     */
    @TableField("user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String userId;

    /**
     * 用户工号
     */
    @TableField("user_no")
    @Size(max = 32, message = "{noMoreThan}")
    private String userNo;

    /**
     * 用户账户
     */
    @TableField("user_name")
    @Size(max = 90, message = "{noMoreThan}")
    private String userName;

    /**
     * 用户姓名
     */
    @TableField("real_name")
    @Size(max = 90, message = "{noMoreThan}")
    private String realName;

    /**
     * 
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 
     */
    @TableField("created_time")
    @Size(max = 3, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 
     */
    @TableField("updated_time")
    @Size(max = 3, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 
     */
    @TableField("deleted_time")
    @Size(max = 3, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;
}